package com.dectechsolutions.instinct;

import java.net.MalformedURLException;
import java.net.URL;

public class TestWs {

	public static void main(String[] args) throws MalformedURLException {
		String strUrl ="http://172.28.5.36/Instinct_FraudCheckWebService/InstinctFraudCheck.asmx?wsdl";
		URL url = new URL(strUrl);
		OnlineFraudCheck fraudCheck = new OnlineFraudCheck(url);
		OnlineFraudCheckSoap fraudCheckSoap = fraudCheck.getOnlineFraudCheckSoap();
		
		String param ="<ApplicationSchema><Application><Organisation>MLI</Organisation><Country_Code>CN</Country_Code><Group_Member_Code></Group_Member_Code><Application_Number>Q151102005</Application_Number><Application_Date>02/11/2015</Application_Date><Application_Type>LOAN</Application_Type><Amount_Limit>15</Amount_Limit><Branch>9999</Branch><Decision>A</Decision><Decision_Reason></Decision_Reason><Decision_Date>23/11/2015</Decision_Date><User_Field1></User_Field1><User_Field2></User_Field2><User_Field3>469</User_Field3><User_Field4>Y</User_Field4><User_Field5>Y</User_Field5><User_Field6>NNNNNN</User_Field6><User_Field7>0</User_Field7><User_Field8></User_Field8><User_Field9>LT</User_Field9><User_Field10>N</User_Field10><User_Field11>B</User_Field11><User_Field12>B</User_Field12><User_Field13>HB</User_Field13><User_Field14>OT99</User_Field14><User_Field15>COLL</User_Field15><User_Field16>0</User_Field16><User_Field17>MJA9</User_Field17><Applicant><Id_Number1>Q151102005</Id_Number1><Id_Number2>06</Id_Number2><Id_Number3>11</Id_Number3><Surname>王勇</Surname><Sex>M</Sex><Date_of_Birth>08/08/1988</Date_of_Birth><Home_Address1>上海市黄浦区</Home_Address1><Home_Address2>南京东路888号</Home_Address2><Home_Phone_Number>2158729111</Home_Phone_Number><Mobile_Phone_Number>13813813805</Mobile_Phone_Number><Company_Name>银行</Company_Name><Company_Address1>上海市杨浦区</Company_Address1><Company_Address2>黄兴路888号</Company_Address2><Company_Phone_Number>2150624005</Company_Phone_Number><User_Field1>1</User_Field1><User_Field2>U</User_Field2><User_Field3></User_Field3><User_Field4>S</User_Field4><User_Field5>10</User_Field5><User_Field6>wangyong@spdb.com.cn</User_Field6><User_Field7></User_Field7><User_Field8>W</User_Field8><User_Field10>200</User_Field10></Applicant><A_Accountant_Solicitor><Id_Number1>Q151102005</Id_Number1><Id_Number2>06</Id_Number2><Id_Number3>11</Id_Number3><Surname>王勇</Surname><First_Name></First_Name><Mobile_Phone_Number>13813813805</Mobile_Phone_Number><Company_Name></Company_Name><Company_Address1>上海市杨浦区</Company_Address1><User_Field1>1</User_Field1><User_Field2>U</User_Field2><User_Field3>30</User_Field3><User_Field4>10</User_Field4><User_Field6>wangyong@spdb.com.cn</User_Field6><User_Field7></User_Field7><User_Field8>W</User_Field8><User_Field9></User_Field9><User_Field10>200</User_Field10></A_Accountant_Solicitor><Guarantor><Id_Number3></Id_Number3><Surname>李晓</Surname><Mobile_Phone_Number>13713711111</Mobile_Phone_Number><User_Field1>R</User_Field1></Guarantor><Introducer_Agent><Id_Number1></Id_Number1><Id_Number2>0</Id_Number2><Surname></Surname><First_Name></First_Name><Mobile_Phone_Number></Mobile_Phone_Number><Company_Name>部门</Company_Name><Company_Phone_Number>2150624005</Company_Phone_Number><User_Field1></User_Field1><User_Field2></User_Field2><User_Field5></User_Field5><User_Field6></User_Field6><User_Field7></User_Field7><User_Field8></User_Field8><User_Field9></User_Field9></Introducer_Agent><Reference><Id_Number3></Id_Number3><Surname>朱达昌</Surname><Mobile_Phone_Number></Mobile_Phone_Number><User_Field1>P</User_Field1></Reference><Security><Id_Number1></Id_Number1><Id_Number2>0</Id_Number2><Surname></Surname><First_Name></First_Name><User_Field1></User_Field1><User_Field2></User_Field2><User_Field5></User_Field5><User_Field6></User_Field6><User_Field7></User_Field7><User_Field8></User_Field8><User_Field9></User_Field9></Security><PreviousAddress_Company><Home_Address1></Home_Address1><Company_Name></Company_Name><Company_Postcode>111111</Company_Postcode><Company_Phone_Number></Company_Phone_Number><User_Field1></User_Field1><User_Field2></User_Field2><User_Field3>0</User_Field3><User_Field4>0</User_Field4><User_Field6>0</User_Field6><User_Field7>0</User_Field7><User_Field8></User_Field8><User_Field9></User_Field9><User_Field10></User_Field10></PreviousAddress_Company><Valuer><Company_Address1></Company_Address1><Company_Phone_Number></Company_Phone_Number><User_Field1></User_Field1><User_Field2></User_Field2><User_Field3>0</User_Field3><User_Field4>0</User_Field4></Valuer><User><Id_Number1></Id_Number1><Surname></Surname><Sex></Sex><Home_Address1></Home_Address1><Home_Address2></Home_Address2><Home_Address3></Home_Address3><Mobile_Phone_Number></Mobile_Phone_Number><Company_Address1></Company_Address1><User_Field1></User_Field1><User_Field3></User_Field3></User><User2><User_Field1></User_Field1><User_Field2></User_Field2><User_Field3>NNNN</User_Field3><User_Field4>职员</User_Field4><User_Field5></User_Field5><User_Field6></User_Field6><User_Field7>21</User_Field7><User_Field8></User_Field8><User_Field9></User_Field9><User_Field10></User_Field10><User_Field11></User_Field11><User_Field12></User_Field12><User_Field13></User_Field13><User_Field14></User_Field14><User_Field15></User_Field15><User_Field16></User_Field16><User_Field17>2</User_Field17><User_Field18></User_Field18><User_Field19></User_Field19><User_Field20></User_Field20><User_Field21></User_Field21><User_Field22></User_Field22><User_Field23></User_Field23><User_Field24>0</User_Field24><User_Field25></User_Field25><User_Field26>Y</User_Field26><User_Field27></User_Field27><User_Field28></User_Field28><User_Field29></User_Field29><User_Field30></User_Field30><User_Field36>1</User_Field36><User_Field37>200</User_Field37></User2><UCA><Id_Number1>Q151102005</Id_Number1><Id_Number2>06</Id_Number2><Id_Number3>11</Id_Number3><Surname></Surname><First_Name></First_Name><Middle_Name></Middle_Name><Home_Address1></Home_Address1><Home_Address2></Home_Address2><Home_Address3></Home_Address3><Home_Address4></Home_Address4><Home_Postcode></Home_Postcode><Home_Phone_Number></Home_Phone_Number><Company_Name></Company_Name><Company_Address1></Company_Address1><Company_Address2></Company_Address2><Company_Address3></Company_Address3><Company_Address4></Company_Address4><Company_Address5></Company_Address5><User_Field1>0</User_Field1><User_Field2></User_Field2><User_Field3></User_Field3><User_Field4></User_Field4><User_Field6></User_Field6><User_Field7>21</User_Field7><User_Field8></User_Field8><User_Field9></User_Field9><User_Field10></User_Field10><User_Field11></User_Field11></UCA><CBA><Id_Number1></Id_Number1><Id_Number2></Id_Number2><Surname></Surname><First_Name></First_Name><Middle_Name></Middle_Name><Short_Name></Short_Name><Home_Address1></Home_Address1><Home_Address2></Home_Address2><Home_Address3></Home_Address3><Home_Address4></Home_Address4><Home_Address5></Home_Address5><Home_Postcode></Home_Postcode><Home_Phone_Number></Home_Phone_Number><Office_Phone_Number></Office_Phone_Number><Mobile_Phone_Number></Mobile_Phone_Number><User_Field1></User_Field1><User_Field2></User_Field2><User_Field3></User_Field3><User_Field4></User_Field4><User_Field5></User_Field5><User_Field6></User_Field6><User_Field17>1</User_Field17></CBA><U2A><User_Field1></User_Field1><User_Field2></User_Field2><User_Field3></User_Field3><User_Field4></User_Field4><User_Field5></User_Field5><User_Field6></User_Field6><User_Field36></User_Field36><User_Field37></User_Field37><User_Field38></User_Field38><User_Field39></User_Field39><User_Field40></User_Field40><User_Field41></User_Field41><User_Field42></User_Field42><User_Field43></User_Field43><User_Field44></User_Field44><User_Field45></User_Field45><User_Field46></User_Field46><User_Field47></User_Field47><User_Field51></User_Field51><User_Field52></User_Field52><User_Field53></User_Field53><User_Field54></User_Field54><User_Field55></User_Field55></U2A></Application></ApplicationSchema>" ;
		param="<ApplicationSchema><Application><Organisation>MLI</Organisation><Country_Code>CN</Country_Code><Group_Member_Code></Group_Member_Code><Application_Number>Q151102005</Application_Number><Application_Date>02/11/2015</Application_Date><Application_Type>LOAN</Application_Type><Amount_Limit>15</Amount_Limit><Branch>9999</Branch><Decision>A</Decision><Decision_Reason></Decision_Reason><Decision_Date>23/11/2015</Decision_Date><User_Field1></User_Field1><User_Field2></User_Field2><User_Field3>469</User_Field3><User_Field4>Y</User_Field4><User_Field5>Y</User_Field5><User_Field6>NNNNNN</User_Field6><User_Field7>0</User_Field7><User_Field8></User_Field8><User_Field9>LT</User_Field9><User_Field10>N</User_Field10><User_Field11>B</User_Field11><User_Field12>B</User_Field12><User_Field13>HB</User_Field13><User_Field14>OT99</User_Field14><User_Field15>COLL</User_Field15><User_Field16>0</User_Field16><User_Field17>MJA9</User_Field17><Applicant><Id_Number1>Q151102005</Id_Number1><Id_Number2>06</Id_Number2><Id_Number3>11</Id_Number3><Surname>王勇</Surname><Sex>M</Sex><Date_of_Birth>08/08/1988</Date_of_Birth><Home_Address1>上海市黄浦区</Home_Address1><Home_Address2>南京东路888号</Home_Address2><Home_Phone_Number>2158729111</Home_Phone_Number><Mobile_Phone_Number>13813813805</Mobile_Phone_Number><Company_Name>银行</Company_Name><Company_Address1>上海市杨浦区</Company_Address1><Company_Address2>黄兴路888号</Company_Address2><Company_Phone_Number>2150624005</Company_Phone_Number><User_Field1>1</User_Field1><User_Field2>U</User_Field2><User_Field3></User_Field3><User_Field4>S</User_Field4><User_Field5>10</User_Field5><User_Field6>wangyong@spdb.com.cn</User_Field6><User_Field7></User_Field7><User_Field8>W</User_Field8><User_Field10>200</User_Field10></Applicant></Application></ApplicationSchema>";
		
		String result = fraudCheckSoap.instinctFraudCheckXMLString(param);
		System.out.println("result:"+result);
	}
}
